package org.ala.tiktools.rpc.kcp.netty;

import io.netty.channel.Channel;

import java.net.InetSocketAddress;

/**
 * @author ala
 * @date 2025-04-14 10:17
 */
public interface IKcpChannel extends Channel {


    /**
     * 远程身份标识
     * <p>  貌似没用到，直接用remoteAddress做标识
     * <p>  原版协议中允许一个remoteAddr开启多个kcp客户端，这里简化了没做分发
     */
    int conv();
    /**
     *
     */
    IKcpChannel conv(int conv);
    /**
     *
     */
    InetSocketAddress localAddress();
    /**
     *
     */
    InetSocketAddress remoteAddress();
}
